import request from '@/utils/request'

const api = {
  getAllInvclUrl: '/base_invcl/get_all_invcl',
  addBaseInvclUrl: '/base_invcl/add_base_invcl',
  updateBaseInvclUrl: '/base_invcl/update_base_invcl',
  removeBaseInvclUrl: '/base_invcl/remove_base_invcl',
}

export async function getAllInvclApi(params: Map<string, any>) {
  const res = await request({
    url: api.getAllInvclUrl,
    method: 'get',
    params: params,
  })
  return res
}

export async function addBaseInvclApi(params: Map<string, any>) {
  const res = await request({
    url: api.addBaseInvclUrl,
    method: 'post',
    data: params,
  })
  return res
}

export async function updateBaseInvclApi(params: Map<string, any>) {
  const res = await request({
    url: api.updateBaseInvclUrl,
    method: 'post',
    data: params,
  })
  return res
}

export async function removeBaseInvclApi(params: Map<string, any>) {
  const res = await request({
    url: api.removeBaseInvclUrl,
    method: 'get',
    params: params,
  })
  return res
}
